<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>新增表单控件属性</title>
</head>
<body>
    <form action="">
        账号：<input 
                type="text" 
                name="account" 
                placeholder="请输入账号" 
                required
                autofocus
                autocomplete="on"
                pattern="\w{6}"
                >
        <br>
        密码：<input type="password" name="password" placeholder="请输入密码" required pattern="\w{6}">
        <br>
        <input type="radio" value="male" name="gender"required>男
        <input type="radio" value="female" name="gender">女
        <br>
        <input type="checkbox" name="hoppy" value="smoke" required>抽烟
        <input type="checkbox" name="hoppy" value="drink">喝酒
        <input type="checkbox" name="hoppy" value="perm">烫头
        <br>
        其他：<textarea name="other" placeholder="请输入其他爱好" required></textarea>
        <br>
        <button>提交</button>
    </form>
</body>
</html>